﻿using System;
using System.Collections.Generic;
using System.Text;

namespace JESAI.DynamicWebApi
{
    public class AppConsts
    {
        public static string[] ControllerPostfixes = { "AppService", "ApplicationService" };
        public const string DefaultServiceModuleName = "app";
        public static Dictionary<string, string> HttpVerbs { get; set; }
        public static string DefaultHttpVerb="POST";
        public static List<string> ActionPostfixes =new List<string>(){ "Async"};
    static AppConsts()
        {
            HttpVerbs = new Dictionary<string, string>()
            {
                ["add"] = "POST",
                ["create"] = "POST",
                ["post"] = "POST",

                ["get"] = "GET",
                ["find"] = "GET",
                ["fetch"] = "GET",
                ["query"] = "GET",

                ["update"] = "PUT",
                ["put"] = "PUT",

                ["delete"] = "DELETE",
                ["remove"] = "DELETE",
            };
        }
    }
}
